from django.conf.urls import url
from django.urls import path

from app1 import views
app_name="app1"
urlpatterns = [
    # path('admin/', admin.site.urls),
    path('hello/', views.hello),
    path('get/', views.get_view),
    path('post/', views.post_view),
    path('cookie/', views.get_cookie),
    path('json/', views.json_rep,name="jsondata"),
    path('redir/', views.redirect_view),
    path('setcookie/', views.set_cookie),
    path('getcookie/', views.get_cookie_view),
    path('setsession/', views.set_session),
    path('delsession/', views.del_session),
    path('getsession/', views.get_session),
    url(r'hello/(?P<name>[a-z]+)/(?P<age>\d{2})/',views.hello)
]
